<link rel="stylesheet" type="text/css" href="feed.css">
<div class="feedback">
<?php

$con=mysqli_connect("localhost","root","s3cr3t","admin");
  // Check connection
if (mysqli_connect_errno())
  {
  //echo "alert'Failed to connect to MySQL: ' . mysqli_connect_error()";
  }

$table = "SELECT * FROM feedback";
$result = mysqli_query($con, $table);
echo "<table><tr><th class='pid'></th><th class='p1'>Email</th><th class='p2'>Subject</th><th class='p3'>Message</th></tr>";
while($row = mysqli_fetch_array($result))
  {
  
	echo "<tr class='pid'><td>".$row["id"]."<td class='p1'>".$row["email"]."</td><td class='p2'>".$row["subject"]."</td><td class='p3'>".$row["message"]."</td></tr>";
  
  }
 echo "</table>"; 
mysqli_close($con);
?></div>
